package com.hll.spring.mybatis.mapper;

import com.hll.spring.mybatis.pojo.School;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * (School)表数据库访问层
 *
 * @author makejava
 * @since 2022-05-14 12:26:55
 */
@Mapper
public interface SchoolMapper {
  // 一对多 处理1
  List<School> getSchoolsWithUsers();

  // 处理 2
  List<School> getSchoolByIdWithUsers(Integer id);
}
